package com.dhsc.controller.jyjk.zxyc;

import com.dhsc.domain.jkzx.zxjh.Sgwhkh;
import com.dhsc.domain.jkzx.zxjh.Zdgzkh;
import com.dhsc.domain.yypt.LayuiTableVo;
import com.dhsc.domain.yypt.ResponseObject;
import com.dhsc.service.jyjk.zxyc.IGzaccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName GzaccountController
 * @description: 重点关注账户
 * @author: gx
 * @create: 2024-08-13 10:01:56
 **/
@Controller
@RequestMapping("/jyjk/zxycjk")
public class GzaccountController {

    @Autowired
    private IGzaccountService gzaccountService;

    /**
    * @Description: 查询重点关注客户信息
    * @MessageName: queryZdgzkhInfo
    * @param: zdgzkh
    * @return: LayuiTableVo
    * @Author: gx
    * @Date: 2024/8/13 10:22
    */
    @ResponseBody
    @RequestMapping("/queryZdgzkhInfo")
    public LayuiTableVo queryZdgzkhInfo(Zdgzkh zdgzkh){
        return gzaccountService.queryZdgzkhInfo(zdgzkh);
    }

    /**
    * @Description: 查询账户类型
    * @MessageName: queryZdgzkhByZhlx
    * @return: ResponseObject
    * @Author: gx
    * @Date: 2024/8/13 10:22
    */
    @ResponseBody
    @RequestMapping("/queryZdgzkhByZhlx")
    public ResponseObject queryZdgzkhByZhlx(){
        return gzaccountService.queryZdgzkhByZhlx();
    }

    /**
    * @Description: 查询营业部信息
    * @MessageName: queryZdgzkhByYyb
    * @return: ResponseObject
    * @Author: gx
    * @Date: 2024/8/13 10:21
    */
    @ResponseBody
    @RequestMapping("/queryZdgzkhByYyb")
    public ResponseObject queryZdgzkhByYyb(){
        return gzaccountService.queryZdgzkhByYyb();
    }

    /**
    * @Description: 查询手工维护信息
    * @MessageName: querySgwhkhInfo
    * @param: sgwhkh
    * @return: LayuiTableVo
    * @Author: gx
    * @Date: 2024/8/13 10:21
    */
    @ResponseBody
    @RequestMapping("/querySgwhkhInfo")
    public LayuiTableVo querySgwhkhInfo(Sgwhkh sgwhkh){
        return gzaccountService.querySgwhkhInfo(sgwhkh);
    }

    /**
    * @Description: 保存重点关注账户   手工维护信息
    * @MessageName: setSgwhkhInfo
    * @param: sgwhkh
    * @return: ResponseObject
    * @Author: gx
    * @Date: 2024/8/13 10:21
    */
    @ResponseBody
    @RequestMapping("/setSgwhkhInfo")
    public ResponseObject setSgwhkhInfo(Sgwhkh sgwhkh){
        return gzaccountService.setSgwhkhInfo(sgwhkh);
    }

    /**
     * @Description: 保存重点关注账户信息
     * @MessageName: saveGzaccount
     * @param: sgwhkh
     * @return: ResponseObject
     * @Author: gx
     * @Date: 2024/9/2 15:34
     */
    @ResponseBody
    @RequestMapping("/saveGzaccount")
    public ResponseObject saveGzaccount(Zdgzkh zdgzkh) {
        return gzaccountService.saveGzaccount(zdgzkh);
    }

    /**
     * @Description: 根据客户号查询客户名称
     * @MessageName: queryKhmcByKhh
     * @return: ResponseObject
     * @Author: gx
     * @Date: 2024/9/2 15:35
     */
    @ResponseBody
    @RequestMapping("/queryKhmcByKhh")
    public ResponseObject queryKhmcByKhh(Zdgzkh zdgzkh) {
        return gzaccountService.queryKhmcByKhh(zdgzkh);
    }
}
